@layout("/common/_container.html"){
<link href="https://pynnn.oss-cn-hangzhou.aliyuncs.com/choice_user.css?v=20200718" rel="stylesheet">
<div style="display: none">
    <input type="hidden" id="customerIdValue" value="${customerInfo.id}">
</div>
<div>
    <div style="background: #6090b8;color: white;padding: 5px 10px;">修改预约备注</div>
    <div style="padding: 20px;">
        <span>预约备注:</span>
        <textarea type="text" rows=5 cols=50 id="remarksReservation" >${customerInfo.remarksReservation}</textarea>
    </div>
    <div class="btnBox">
        <button class="btn" type="button" id="submission">提交</button>
        <button class="btn" type="button" onclick="parent.layer.close(parent.layer.getFrameIndex(window.name))">取消</button>
    </div>
</div>

<script>
    $("#submission").click(function () {
        var customerId = $("#customerIdValue").val();
        var remarksReservation = $("#remarksReservation").val();
        $.ajax({
            url: Feng.ctxPath + "/doctorLooked/updateRemarksReservationOk",
            type: "post",
            data: {
                customerId: customerId,
                remarksReservation: remarksReservation
            },
            success: function (data) {
                Feng.success("预约备注修改成功!");
                window.parent.$('#calendar').fullCalendar('refetchEvents');
                parent.layer.close(parent.layer.getFrameIndex(window.name));
            },
            error: function (data) {
            }
        });
    })
</script>
@}